//
//  UserInfo.h
//  PigMarket
//
//  Created by Felix on 2019/4/11.
//  Copyright © 2019 felix.pigmarket.oc. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "YYModel.h"

typedef NS_ENUM(NSInteger,StageType) {
    StageTypeLoginSuccess = 0, //登录成功
    StageTypePhone = 1,         //绑定手机号
    StageTypeSelectInviter = 2, //选择邀请人
    StageTypePersonalInfomation = 3 //完善个人资料
};


typedef NS_ENUM(NSInteger,AccountStatus) {
    AccountStatusNormal = 1,      // 正常
    AccountStatusFreeze = 2       // 冻结
};


@interface UserInfo : NSObject

/**
 memberId
 */
@property (nonatomic , strong) NSNumber *memberId;
/**
 手机号码
 */
@property (nonatomic , copy) NSString *phone;

/**
 会员编号
 */
@property (nonatomic , copy) NSString *memberNum;

/**
 token
 */
@property (nonatomic , copy) NSString *memberToken;
/**
 腾讯云userSig
 */
@property (nonatomic , copy) NSString *userSig;
/**
 stage
 */
@property (nonatomic , strong) NSNumber *stage;
/**
 wxOpenid
 */
@property (nonatomic , copy) NSString *wxOpenid;
/**
 qqOpenid
 */
@property (nonatomic , copy) NSString *qqOpenid;
/**
 wbOpenid
 */
@property (nonatomic , copy) NSString *wbOpenid;
/**
 微信绑定账户
 */
@property (nonatomic , strong) NSString *withdrawWx;
/**
 实名认证
 */
@property (nonatomic , strong) NSString *memberName;


/**********************自定义*************************/

/**
 登录状态
 */
@property (nonatomic, assign) BOOL isLogin;

/**
 IM登录状态
 */
@property (nonatomic , assign) BOOL isIMLogin;

/**
 部落id
 */
@property (nonatomic , strong) NSNumber *tribeId;

/**
 pigId
 */
@property (nonatomic , strong) NSNumber *pigId;
@end

